﻿using System;
using NetBay.Core.BusinessEntities;

namespace Rio.Framework.Pages.Events
{
    /// <summary>
    /// Used by Criteria Control => FilterClick event
    /// </summary>
    public class FilterClickEventArgs : EventArgs
    {
        private Index _currentIndex;

        /// <summary>
        /// Get the current <see cref="Index"/>
        /// </summary>
        public Index CurrentIndex
        {
            get { return _currentIndex; }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="FilterClickEventArgs" /> class.
        /// </summary>
        /// <param name="index">The index.</param>
        public FilterClickEventArgs(Index index)
        {
            _currentIndex = index;
        }
    }
}
